using System.Drawing;
using System.Windows.Forms;

namespace NetExtensions.GUI
{
	public class GLabel : Control
	{
		private Color _borderColor = Color.Black;

		protected override void OnPaint(PaintEventArgs e)
		{
			e.Graphics.DrawRectangle(new Pen(BorderColor), 0, 0, Width - 1, Height - 1);
			e.Graphics.DrawString(Text, Font, Brushes.Black, new PointF(0, 4));
		}

		public Color BorderColor
		{
			get
			{
				return _borderColor;
			}
			set
			{
				_borderColor = value;
			}
		}
	}
}